﻿using System.Net;
using Blazor.CoffeeTalesApi.Entity;
using Blazor.Model.Dto;
using Blazor.Model.Entity;

namespace Blazor.Pages.UpdateSetting.Modals.Whitelist;

public class WhitelistOptions
{
    [Flags]
    public enum EditType    
    {
        Key = 1 << 0,
        Raw = 1 << 1,
        Default = 1 << 2,
        Comment = 1 << 3,
        All = Key | Raw | Default | Comment,
    }
    
    public required IWhitelistKey? Key { get; init; }

    public string Raw { get; init; } = string.Empty;
    public string Default { get; init; } = string.Empty;
    
    public string Comment { get; init; } = string.Empty;

    public EditType Type { get; init; }
}